package org.csmz.xg2333;
import java.io.FileReader;
import java.io.*;

public class Example12 {
    public static void main(String[] args){
        try{
            FileReader reader = new FileReader("src\\File\\example.txt");
            char[] chars = new char[3];
            int len;
            while ((len = reader.read(chars) != -1)){
                System.out.println(new String(chars,0,len));
            }
        }catch(Exception e){
            e.printStackTrace();
        }
    }
}
